<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>会员中心-一览网</title>
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/member.css">
    <script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
    <script type="text/javascript" src="js/layui/layui.all.js"></script>
</head>
<body>
<header>
    <div class="m_top">
        <div class="m_top_bar">
            <div class="m_top_login fl">
                <p><b>13814503433</b> <img src="images/right.png">  <a href="member_index.html">会员中心</a> | <a href="">退出</a></p>
            </div>
            <div class="m_top_search fl">
                <form method="get" action="">
                    <div class="m_search_warp">
                        <i class="ico ico-zoom"></i>
                        <input type="text" value="" placeholder="请输入化学品的中文名，英文名或CAS号" class="m_search_txt">
                    </div>
                    <input type="submit" value="搜索" class="m_search_sub">
                </form>
            </div>
            <div class="m_top_nav rg_menu fr">
                <ul>
                    <li><a href="index.html">平台首页</a><span>|</span></li>
                    <li><div class="show_qrcode"> <img src="images/er-icon.png" class="simple">二维码 <span>|</span><div class="tip-qrcode"><img src="images/qrcode.jpg"></div></div></li>
                    <li class="kf"><a href="javascript:;" class="td">客服中心</a><span>|</span>
                        <div class="kf_child hidden">
                            <ul>
                                <li><a href="help.html">帮助中心</a> </li>
                                <li><a href="feedback.html">反馈意见</a> </li>
                                <li><a href="contact.html">联系我们</a> </li>
                            </ul>
                        </div>
                    </li>
                    <li><a href=""  class="td">网站地图</a></li>
                </ul>
            </div>
        </div>
    </div>
</header>

<div class="clearfix"></div>

<div class="contain pt20">
    <div class="m_content">
        <div class="m_menu fl">
            <div class="mt_menu">
                <dl>
                    <dt class="mn1">会员首页</dt>
                    <dd><a href="member_index.html">会员首页</a></dd>
                </dl>
                <dl>
                    <dt class="mn2">采购中心</dt>
                    <dd><a href="member_buy_add.html">新增求购</a></dd>
                    <dd>
                        <a href="member_buy_list.html">求购管理</a>
                        <ol class="hidden">
                            <li><a href="">已报价</a></li>
                            <li><a href="">未报价</a></li>
                            <li><a href="">取消求购</a></li>
                            <li><a href="">暂时缺货</a></li>
                        </ol>
                    </dd>
                    <dd><a href="member_order_list.html">采购订单</a></dd>
                </dl>
                <dl>
                    <dt class="mn3">销售中心</dt>
                    <dd><a href="member_goods_add.html">上传目录</a></dd>
                    <dd><a href="member_goods_list.html">商品管理</a>
                        <ol class="hidden">
                            <li><a href="member_goods_list.html">已上架</a></li>
                            <li><a href="member_goods_list_down.html">已下架</a></li>
                            <li><a href="member_goods_list_check.html">待审核</a></li>
                        </ol>
                    </dd>
                    <dd><a href="member_inquiry_list.html">询单管理</a>
                        <ol class="hidden">
                            <li><a href="member_inquiry_list.html">未报价</a></li>
                            <li><a href="member_inquiry_list_had.html">已报价</a></li>
                            <li><a href="member_inquiry_list_abandon.html">已放弃</a></li>
                        </ol>
                    </dd>
                    <dd><a href="member_sell_list.html">销售订单</a></dd>
                </dl>
                <dl>
                    <dt class="mn4">账号管理</dt>
                    <dd><a href="member_account_attentions.html">我的关注</a></dd>
                    <dd><a href="member_account_informations.html">账号信息</a></dd>
                    <dd><a href="member_account_transaction.html">交易资料</a>
                        <ol>
                            <li><a href="member_account_transaction.html">收货地址</a></li>
                            <li><a href="member_account_invoice.html">发票中心</a></li>
                            <li class="on"><a href="member_account_business.html">资质管理</a></li>
                        </ol>
                    </dd>
                </dl>
            </div>
        </div>
        <div class="m_con fr">
            <div class="b-bar">
                <div class="b-title"><span>资质管理</span></div>
                <div class="b-con">
                    <div class="b-block-search">
                        <form action="" method="post">
                            <input type="text" id="search_params_chemical_info" class="form_input wd300 search-input" name="keywords" placeholder="请输入地址信息" value="" autocomplete="off">
                            <input type="submit" class="submit_btn wd100" value="查 询">
                        </form>
                    </div>

                    <div class="flex b-block_list mt20 mb10">
                        <table class="bz_table">
                            <thead>
                            <tr>
                                <th width="15%">收货人</th>
                                <th>联系电话</th>
                                <th>省市</th>
                                <th>详细地址</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td>伏焕凌</td>
                                <td>15968033987</td>
                                <td>山西省, 太原市</td>
                                <td>人民路华夏大厦16楼</td>
                                <td>
                                    <img src="images/edit16.png"><a href="javascript:;" class="blue" onclick="javascript:edit_address(2653);">修改</a>
                                    <img src="images/delete16.png"><a href="javascript:;" class="blue" onclick="javascript:delete_address(2653);">删除</a>
                                    <img src="images/set16.png"><a href="javascript:;" class="blue" onclick="javascript:set_address_default(2653);">设为默认</a>
                                </td>
                            </tr>
                            <tr>
                                <td>伏焕凌</td>
                                <td>15968033987</td>
                                <td>山西省, 太原市</td>
                                <td>人民路华夏大厦16楼</td>
                                <td>
                                    <img src="images/edit16.png"><a href="javascript:;" class="blue" onclick="javascript:edit_address(2653);">修改</a>
                                    <img src="images/delete16.png"><a href="javascript:;" class="blue" onclick="javascript:delete_address(2653);">删除</a>
                                    <img src="images/set16.png"><a href="javascript:;" class="blue" onclick="javascript:set_address_default(2653);">设为默认</a>
                                </td>
                            </tr>
                            <tr>
                                <td>伏焕凌</td>
                                <td>15968033987</td>
                                <td>山西省, 太原市</td>
                                <td>人民路华夏大厦16楼</td>
                                <td>
                                    <img src="images/edit16.png"><a href="javascript:;" class="blue" onclick="javascript:edit_address(2653);">修改</a>
                                    <img src="images/delete16.png"><a href="javascript:;" class="blue" onclick="javascript:delete_address(2653);">删除</a>
                                    <img src="images/set16.png"><a href="javascript:;" class="blue" onclick="javascript:set_address_default(2653);">设为默认</a>
                                </td>
                            </tr>
                            <tr>
                                <td>伏焕凌</td>
                                <td>15968033987</td>
                                <td>山西省, 太原市</td>
                                <td>人民路华夏大厦16楼</td>
                                <td>
                                    <img src="images/edit16.png"><a href="javascript:;" class="blue" onclick="javascript:edit_address(2653);">修改</a>
                                    <img src="images/delete16.png"><a href="javascript:;" class="blue" onclick="javascript:delete_address(2653);">删除</a>
                                    <img src="images/set16.png"><a href="javascript:;" class="blue" onclick="javascript:set_address_default(2653);">设为默认</a>
                                </td>
                            </tr>
                            <tr>
                                <td>伏焕凌</td>
                                <td>15968033987</td>
                                <td>山西省, 太原市</td>
                                <td>人民路华夏大厦16楼</td>
                                <td>
                                    <img src="images/edit16.png"><a href="javascript:;" class="blue" onclick="javascript:edit_address(2653);">修改</a>
                                    <img src="images/delete16.png"><a href="javascript:;" class="blue" onclick="javascript:delete_address(2653);">删除</a>
                                    <img src="images/set16.png"><a href="javascript:;" class="blue" onclick="javascript:set_address_default(2653);">设为默认</a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="clearfix"></div>
                    <div class="paging">
                        <ul class="pagination">
                            <li class="page-item disabled"><span class="page-link">上页</span></li>
                            <li class="page-item active"><span class="page-link">1</span></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=2">2</a></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=3">3</a></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=4">4</a></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=5">5</a></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=6">6</a></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=7">7</a></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=8">8</a></li>
                            <li class="page-item disabled"><span class="page-link">...</span></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=188">188</a></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=189">189</a></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=2" rel="next">下页</a></li>
                        </ul>
                    </div>
                </div>
            </div>

        </div>
    </div>
    <div class="clearfix"></div>
</div>
<div class="clearfix"></div>
<footer>
    <div class="footer">
        <div class="foot_con">
            <div class="ft_left">
                <div class="ft_service">
                    <img src="images/service.png">
                    <p class="yellow fz16 bold mt10">电话：025-66028182</p>
                    <p class="fz16 mt10">QQ：2850281398</p>
                    <p class="fz16 mt10">工作时间 8:30 - 17:30</p>
                </div>
            </div>
            <div class="ft_center">
                <dl>
                    <dt>新手上路</dt>
                    <dd><a href="">用户注册</a></dd>
                    <dd><a href="">隐私声明</a></dd>
                    <dd><a href="">使用须知</a></dd>
                    <dd><a href="">协议条款</a></dd>
                </dl>
                <dl>
                    <dt>联系我们</dt>
                    <dd><a href="">关于我们</a></dd>
                    <dd><a href="">联系我们</a></dd>
                    <dd><a href="">合作伙伴</a></dd>
                    <dd><a href="">通知公告</a></dd>
                </dl>
                <dl>
                    <dt>售后服务</dt>
                    <dd><a href="">开票服务</a></dd>
                    <dd><a href="">退换货服务</a></dd>
                    <dd><a href="">用户反馈</a></dd>
                    <dd><a href="">发货方式</a></dd>
                </dl>
                <dl>
                    <dt>帮助中心</dt>
                    <dd><a href="">售后政策</a></dd>
                    <dd><a href="">退换货说明</a></dd>
                    <dd><a href="">退款说明</a></dd>
                    <dd><a href="">产品目录</a></dd>
                </dl>
            </div>
            <div class="ft_right">
                <div class="ft_qrcode">
                    <img src="images/qrcode.jpg">
                    <p>关注公众号</p>
                </div>
            </div>
        </div>
        <div class="clearfix"></div>
        <div class="copyright">
            <p>版权所有 Copyright(C)2020 南京一览生物科技有限公司 <a href="http://www.beian.miit.gov.cn/" style="color: #777272;">苏ICP备20017967号-1</a></p>
        </div>
    </div>
    <div class="clearfix"></div>
</footer>
</body>
</html>
<!--修改地址-->
<div id="edit_address_block" class="hidden">
    <form novalidate="novalidate" id="new_address" action="http://www.buysellchem.com/member/account/create_address" accept-charset="UTF-8" method="post">
        <input type="hidden" name="_token" value="uPm8czm4d7Fg6QzZBbMaKawSKydIPC3UOk0MmSZB">
        <input name="utf8" type="hidden" value="✓">
        <input type="hidden" name="method" id="method" value="edit">
        <input type="hidden" name="address[district]" id="address_district" value="小店区">
        <input type="hidden" name="address[province]" id="address_province" value="山西省">
        <input type="hidden" name="address[city]" id="address_city" value="太原市">
        <input type="hidden" name="address[id]" id="address_id" value="2653">
        <table class="kqy_table">
            <tbody>
            <tr>
                <td class="t1"><span class="red mr10">*</span>所在地区</td>
                <td><input class="form_input wd300" id="full_address" name="full_address" placeholder="请输入邮箱" type="text" value="山西省/太原市/小店区"></td>
            </tr>
            <tr>
                <td class="t1"><span class="red mr10">*</span>详细地址</td>
                <td>
                    <input class="form_input wd300" id="address_address" name="address[address]" placeholder="建议您如实填写详细收货地址，例如街道名称，门牌号码，楼层和房间号等信息" type="text" value="人民路华夏大厦16楼">
                </td>
            </tr>
            <tr>
                <td class="t1"><span class="red mr10">*</span>收货人</td>
                <td>
                    <input class="form_input wd300" id="address_name" name="address[name]" placeholder="请输入您的收货人名字" type="text" value="伏焕凌">
                </td>
            </tr>
            <tr>
                <td class="t1"><span class="red mr10">*</span>联系电话</td>
                <td>
                    <input class="form_input wd300" id="address_mobile" name="address[mobile]" placeholder="请输入您的联系电话" type="text" value="15968033987">
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center"><button class="submit_btn wdp50" type="button" onclick="javascript:void(0);" id="btn_edit_address">确认</button></td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<script type="text/javascript">
    /**
     * 编辑地址
     */
    function edit_address(id) {
        layer.open({
            type: 1,
            title:'编辑地址',
            skin: 'layui-layer-lan', //加上边框
            area: ['40%', '50%'], //宽高
            btnAlign: 'l',
            closeBtn:2,
            scrollbar:true,
            content: $("#edit_address_block"),
            end:function () {

            }
        });
    }

    $("#btn_edit_address").click(function(){

        if($("#address_province").val()=="" ||  $("#address_city").val()=="" ||  $("#address_district").val()=="" ){
            layer.alert('请选择完整的省市区!',{
                skin: 'layui-layer-lan',
                anim: 4
            });
            return false;
        }

        if($.trim($("#address_address").val())==''){
            layer.alert('请填写详细地址!',{
                skin: 'layui-layer-lan',
                anim: 4
            });
            return false;
        }
        if($.trim($("#address_name").val())==''){
            layer.alert('请填写收货人!',{
                skin: 'layui-layer-lan',
                anim: 4
            });
            return false;
        }
        if($.trim($("#address_mobile").val())==''){
            layer.alert('请填写联系电话!',{
                skin: 'layui-layer-lan',
                anim: 4
            });
            return false;
        }

        $.ajax({
            url: $("#new_address").attr('action'),
            data: $("#new_address").serializeArray(),
            type: 'post',
            cache: false,
            dataType: 'json',
            success: function (data) {
                layer.alert(data.msg,{
                    skin: 'layui-layer-lan',
                    anim: 4
                },function () {
                    window.location.href = "http://www.buysellchem.com/member/account/transaction";
                });
                return false;
            },
            error: function () {
                layer.msg('系统异常，请联系客服人员！', {icon: 2});
            }
        });

    });

    /*
     删除地址
     **/
    function delete_address(id) {
        layer.confirm('您是否确认删除地址！', {
            btn: ['确定','取消'], //按钮
            skin: 'layui-layer-lan',
            anim: 4
        }, function(){

            $.ajax({
                url:"http://www.buysellchem.com/member/account/delete_address",
                data:{ "_token": "uPm8czm4d7Fg6QzZBbMaKawSKydIPC3UOk0MmSZB", "id": id},
                type: "post",
                dataType: "json",
                success: function (data) {

                    layer.alert(data.msg, {
                        skin: 'layui-layer-lan' //样式类名
                        ,closeBtn: 0
                        ,anim: 4
                    }, function(){
                        window.location.href = "http://www.buysellchem.com/member/account/transaction";
                    });
                },
                error: function () {
                    layer.msg('系统异常，请联系客服人员！', {icon: 2});
                }
            });

        });
    }

    /**
     * 设置默认地址
     * @param id
     */
    function set_address_default(id) {
        layer.confirm('确认设置为默认吗！', {
            btn: ['确定','取消'], //按钮
            skin: 'layui-layer-lan',
            anim: 4
        }, function(){

            $.ajax({
                url:"http://www.buysellchem.com/member/account/default_address",
                data:{ "_token": "uPm8czm4d7Fg6QzZBbMaKawSKydIPC3UOk0MmSZB", "id": id},
                type: "post",
                dataType: "json",
                success: function (data) {

                    layer.alert(data.msg, {
                        skin: 'layui-layer-lan' //样式类名
                        ,closeBtn: 0
                        ,anim: 4
                    }, function(){
                        window.location.href = "http://www.buysellchem.com/member/account/transaction";
                    });
                },
                error: function () {
                    layer.msg('系统异常，请联系客服人员！', {icon: 2});
                }
            });

        });
    }
</script>